/************************************************************************/
/* Customized and extended version,                                     */
/* Original from James Waples Copyright (c) 2010                        */
/* http://www.jamwaffles.co.uk/index.php?p=downloads&s=cod&a=obl&dc     */
/************************************************************************/

#ifndef DEVILTEXTURE_H
#define DEVILTEXTURE_H

#include <IL/il.h>
#include <GL/glut.h>

#ifndef GL_CLAMP_TO_EDGE 
#define GL_CLAMP_TO_EDGE 0x812F 
#endif

class DevilTexture
{
    private:
        GLuint texID;
        ILuint ilTexID;
        ILboolean success;
        bool isLoaded;

        bool texAlpha;		
        int width;
        int height;
    public:
        DevilTexture();
        ~DevilTexture();
        
        int Load(const char *fileName);		
        void Use();

        bool IsLoaded();
        int GetTextureID();
        int GetWidth();
        int GetHeight();
};

#endif //DEVILTEXTURE_H
